<?php
namespace Admin\Model;
use Think\Model\ViewModel;

class AccountViewModel extends ViewModel
{
    public $viewFields = array(

        'agent_account' => array(
            "*",
            '_type' => 'LEFT'
        ),
        'agent' => array(
            'agent_name','is_agent',
            '_on' => 'agent.agent_id = agent_account.agent_id' ,
            '_type' => 'LEFT'
        ),
//        'manager' => array(
//            'name',
//            '_on' => 'manager.id = agent_account.audit_manager' ,
//            '_type' => 'LEFT'
//        ),
    );
}

